package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.TreeEntity;

/**
 * 食材类型对象 tb_food_type
 * 
 * @author 段奇乐
 * @date 2024-12-02
 */
public class FoodType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 食材类型主键 */
    private Long foodTypeId;

    /** 食材类型 */
    @Excel(name = "食材类型")
    private String foodTypeName;

    /** 存储条件 */
    @Excel(name = "存储条件")
    private String storageCondition;

    /** 图片 */
    @Excel(name = "图片")
    private String imageUrl;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isEnabled;

    /** 食材类型所属用户id */
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setFoodTypeId(Long foodTypeId) 
    {
        this.foodTypeId = foodTypeId;
    }

    public Long getFoodTypeId() 
    {
        return foodTypeId;
    }
    public void setFoodTypeName(String foodTypeName) 
    {
        this.foodTypeName = foodTypeName;
    }

    public String getFoodTypeName() 
    {
        return foodTypeName;
    }
    public void setStorageCondition(String storageCondition) 
    {
        this.storageCondition = storageCondition;
    }

    public String getStorageCondition() 
    {
        return storageCondition;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("foodTypeId", getFoodTypeId())
            .append("foodTypeName", getFoodTypeName())
            .append("parentId", getParentId())
            .append("remark", getRemark())
            .append("storageCondition", getStorageCondition())
            .append("imageUrl", getImageUrl())
            .append("isEnabled", getIsEnabled())
            .toString();
    }
}
